import request from '@/router/axios'

export function save (data) {
  return request({
    url: '/alarmequipment',
    method: 'post',
    data:data
  })
}

export function edit (data) {
  return request({
    url: '/alarmequipment',
    method: 'put',
    data:data
  })
}

export function page (data) {
  return request({
    url: '/alarmequipment/page',
    method: 'get',
    params:data
  })
}

export function all (data) {
  return request({
    url: '/alarmequipment/all',
    method: 'get',
    params: data
  })
}

export function deleteById (id) {
  return request({
    url: '/alarmequipment/'+id,
    method: 'delete'
  })
}

export function get (id) {
  return request({
    url: '/alarmequipment/'+id,
    method: 'get'
  })
}